package cn.com.dhcc.adam.spring.mvc.five;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
	@RequestMapping("/fiveTest")
	public String displayHeaderInfo( @CookieValue("JSESSIONID") String cookie, Model mod) {
		mod.addAttribute("sessID", cookie);
		return "FiveTest";
	}
}
